import { post, remove, get, put } from './api'
// import { read } from '../store/modules/init.js'
// 修改密码
export const updatePasswordApi = (per,id) => {
    const obj = {
        oldPassword: per.oldPassword,
        newPassword: per.newPassword
    }
    const body = {
        method: 'modifyPassword',
        args: JSON.stringify(obj)
    }
    const url = '/usermgt/employee/' + id
    return put(url, body)
}
